//
//  HKProgressView.h
//  HKUtilities
//
//  Created by 胡锦涛 on 2018/11/14.
//  Copyright © 2018 胡锦涛. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HKResultMessage.h"
#define HK_RETRY_MSG @"\n点击重试"
NS_ASSUME_NONNULL_BEGIN
typedef void(^HKOnClickBlock)(void);
typedef void(^HKOnCompleteBlock)(BOOL completed);
@interface HKProgressView : UIView
- (void)addTo:(UIView *)parent;
- (void)showErrorMessage:(NSString *)message WithRetry:(HKOnClickBlock)retryBlock;
- (void)dismiss;
- (BOOL)showErrorMessage:(HKResultMessage *)result OnRetry:(HKOnClickBlock)retryBlock;

+ (void)dismiss;
+ (HKProgressView *)sharedInstance;
+ (BOOL)showErrorMessage:(HKResultMessage *)result OnRetry:(HKOnClickBlock)retryBlock;
@end

NS_ASSUME_NONNULL_END
